Fix mysql and postgres migration script of 1.9.20#272
Fix mysql and postgres migration script of 1.9.20#272kenchan0130 wants to merge 4 commits intoTestLinkOpenSourceTRMS:testlink_1_9from
Conversation
Manage this branch in SquashTest this branch here: https://kenchan0130fix-mysql-migration-n5jn2.squash.io |
|
@fmancardi |
|
Dear user, I hope you can understand that expecting a response in some short period of time in Open Source project that has no company support is not a lot realistic. |
|
We understand that this is difficult to do with OSS and no support. I'm sorry to have rushed you. |
|
I would like to know the current status. |
|
Friendly ping. This issue still persists. Hopefully this will get merged. |
|
Hi
|
|
@fmancardi Thanks for your reply, but after I've investigated this issue all day today trying to revive an old TestLink database (that sadly wasn't backed up) I don't think this PR will fix the issue, as I don't believe TestLink causes it. Our installation is using a slightly modified version of the Bitnami docker-compose Image for Testlink and I'm pretty sure the error can be traced back to a failed update applied through this docker-compose setup earlier. When investigating the database using PhpMyAdmin I can see the changes from the sql update-script have been been applied and this upgrade is actually now blocking us from applying the update-script again, as the new columns in the tables are already present. This explains the error reported by @kenchan0130 that I'm also seeing. Been trying to revert the schema manually and then starting the docker image again (this applies the upgrade), but as of yet without luck. Sidenote: I'm actually not sure if the Bitnami-TestLink image is using the |
|
Hi Because code from testlink_1_9_20_fixed has not been released with a tag, Bitnami do not use it. best regards |
|
I have sent out another PR to address your requirements. |
What happened
testlink_create_tablesSurvey results
The mysql migration script from 1.9.19 to 1.9.20 expects
testlink-code/install/sql/mysql/testlink_create_tables.sql
Lines 334 to 335 in b3004c6
However,
platforms.enable_on_designandplatforms.enable_on_executionare not migrating correctly.Since
https://github.com/TestLinkOpenSourceTRMS/testlink-code/blob/testlink_1_9/install/sql/postgres/testlink_create_default_data.sql
or
https://github.com/TestLinkOpenSourceTRMS/testlink-code/blob/testlink_1_9/install/sql/mysql/testlink_create_default_data.sql
is executed by https://github.com/TestLinkOpenSourceTRMS/testlink-code/blob/testlink_1_9/install/installNewDB.php.
When executed in the migration script, it will be
Impacted area
This affects all users who are using
1.9.19and below and upgrading to1.9.20.Users using from
1.9.20are not affected.What did I do
platforms.enable_on_designandplatforms.enable_on_executioncolumns indb_schema_update.sql.rightstable indb_schema_update.sqlCovered #251